package comoabejas

class PurchaseService {

    static transactional = true

    public Purchase saveObj(Purchase p) {
		
		try{
			boolean a = p.save(flush:true)	
			return p
		}catch(Exception e){
			System.out.println(e.printStackTrace());
		}
		/*
    	if(p.save(flush: true)){
    		return p
    	}else{
			return null
		}*/
    }
}
